package com.share.module.business.stock.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.stock.mybatisplus.entity.BaseEntity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 股票表
 * </p>
 *
 * @author system
 * @since 2025-11-02
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@TableName("stock")
public class Stock extends BaseEntity<Stock> {

    /**
     * 股票名称
     */
    @NotBlank(message = "股票名称不能为空")
    private String name;

    /**
     * 股票代码
     */
    @NotBlank(message = "股票代码不能为空")
    private String code;

    /**
     * 公司网址
     */
    private String url;
}
